package cn.qicaiwang.open.app.dto;
import  lombok.Data;
import javax.validation.constraints.*;
import java.math.BigDecimal;

/**
 * 工伤赔偿计算DTO
 */
@Data
public class WorkInjuryCompensationDTO {
    @NotNull(message = "月工资不能为空")
    @DecimalMin(value = "0", message = "月工资不能小于0")
    private BigDecimal monthlySalary;     // 月工资

    @NotNull(message = "伤残等级不能为空")
    @Min(value = 1, message = "伤残等级最小为1")
    @Max(value = 10, message = "伤残等级最大为10")
    private Integer disabilityLevel;     // 伤残等级(1-10)

    @NotNull(message = "医疗费用不能为空")
    @DecimalMin(value = "0", message = "医疗费用不能小于0")
    private BigDecimal medicalExpenses;  // 医疗费用

    @NotNull(message = "住院天数不能为空")
    @Min(value = 0, message = "住院天数不能小于0")
    private Integer hospitalizationDays; // 住院天数

    @NotNull(message = "护理天数不能为空")
    @Min(value = 0, message = "护理天数不能小于0")
    private Integer nursingDays;         // 护理天数

    @NotNull(message = "交通费不能为空")
    @DecimalMin(value = "0", message = "交通费不能小于0")
    private BigDecimal transportationFee; // 交通费
}
